python-cath 0.3.0__tar.gz → 0.4.0__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: python-cath
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Cat files w/ headers
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -61,7 +61,7 @@ python-cath --help
61
61
  ```
62
62
 
63
63
  ```bash
64
- python-cath file1 file2 outfile
64
+ python-cath file1 file2 --output outfile
65
65
  ```
66
66
 
67
67
  or if installed with `Poetry`:
@@ -71,7 +71,7 @@ poetry run python-cath --help
71
71
  ```
72
72
 
73
73
  ```bash
74
- poetry run python-cath file1 file2 outfile
74
+ poetry run python-cath file1 file2 --output outfile
75
75
  ```
76
76
 
77
77
  ### Makefile usage
@@ -34,7 +34,7 @@ python-cath --help
34
34
  ```
35
35
 
36
36
  ```bash
37
- python-cath file1 file2 outfile
37
+ python-cath file1 file2 --output outfile
38
38
  ```
39
39
 
40
40
  or if installed with `Poetry`:
@@ -44,7 +44,7 @@ poetry run python-cath --help
44
44
  ```
45
45
 
46
46
  ```bash
47
- poetry run python-cath file1 file2 outfile
47
+ poetry run python-cath file1 file2 --output outfile
48
48
  ```
49
49
 
50
50
  ### Makefile usage
@@ -6,7 +6,7 @@ build-backend = "poetry.masonry.api"
6
6
 
7
7
  [tool.poetry]
8
8
  name = "python-cath"
9
- version = "0.3.0"
9
+ version = "0.4.0"
10
10
  description = "Cat files w/ headers"
11
11
  readme = "README.md"
12
12
  authors = [
@@ -11,6 +11,8 @@ app = typer.Typer(
11
11
  name="python-cath",
12
12
  help="Cat files w/ headers",
13
13
  add_completion=False,
14
+ invoke_without_command=True,
15
+ no_args_is_help=True,
14
16
  )
15
17
  console = Console()
16
18
 
@@ -27,7 +29,9 @@ def version_callback(value: bool) -> None:
27
29
  @app.command()
28
30
  def main(
29
31
  file_list: List[str] = typer.Argument(...),
30
- output_file: str = typer.Argument(...),
32
+ output_file: str = typer.Option(
33
+ ..., "--output", "-o", help="Output file path"
34
+ ),
31
35
  ) -> None:
32
36
  """Concatenate CSV files with a shared header into output_file."""
33
37
  concat(file_list, output_file)
File without changes