hea-scripts 1.0.0b2__tar.gz → 1.0.0b3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hea-scripts
3
- Version: 1.0.0b2
3
+ Version: 1.0.0b3
4
4
  Summary: A collection of scripts for the HEA project.
5
5
  Author-email: "Comprehensive Oncology Data and Engineering Shared Resource (CODE), Huntsman Cancer Institute, Salt Lake City, UT" <Andrew.Post@hci.utah.edu>
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hea-scripts"
7
- version = "1.0.0b2"
7
+ version = "1.0.0b3"
8
8
  readme = "README.md"
9
9
  description = "A collection of scripts for the HEA project."
10
10
  authors = [
@@ -17,10 +17,13 @@ def main() -> None:
17
17
  parser.add_argument('-f', '--file', action='store_true', help='If provided, input is a file from which to read input.')
18
18
  parser.add_argument('-p', '--property', help='Process a property from the .env file')
19
19
  parser.add_argument('-o', '--output-file', help='If provided, output will be written to the specified file instead of stdout.')
20
- parser.add_argument('input', help='The input data to encrypt or decrypt. If -, reads from stdin or the .env.')
20
+ parser.add_argument('input', nargs='?', help='The input data to encrypt or decrypt. If -, reads from stdin or the .env.')
21
21
 
22
22
  args = parser.parse_args()
23
23
 
24
+ if not args.property and not args.file and args.input is None:
25
+ parser.error('input is required unless -p/--property or -f/--file is provided')
26
+
24
27
  dot_env = get_env_data_as_dict('.env')
25
28
 
26
29
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hea-scripts
3
- Version: 1.0.0b2
3
+ Version: 1.0.0b3
4
4
  Summary: A collection of scripts for the HEA project.
5
5
  Author-email: "Comprehensive Oncology Data and Engineering Shared Resource (CODE), Huntsman Cancer Institute, Salt Lake City, UT" <Andrew.Post@hci.utah.edu>
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes