File tree Expand file tree Collapse file tree 3 files changed +31
-8
lines changed Expand file tree Collapse file tree 3 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ poetry export -f requirements.txt --output requirements.txt
44
44
45
45
* ` --format (-f) ` : The format to export to (default: ` requirements.txt ` ). Currently, only ` constraints.txt ` and ` requirements.txt ` are supported.
46
46
* ` --output (-o) ` : The name of the output file. If omitted, print to standard output.
47
- * ` --without ` : The dependency groups to ignore when exporting .
48
- * ` --with ` : The optional dependency groups to include when exporting .
49
- * ` --only ` : The only dependency groups to include when exporting.
47
+ * ` --with ` : The optional and non-optional dependency groups to include. By default, only the main dependencies are included .
48
+ * ` --only ` : The only dependency groups to include. It is possible to exclude the ` main ` group this way .
49
+ * ` --without ` : The dependency groups to ignore. ( ** Deprecated ** )
50
50
* ` --default ` : Only export the main dependencies. (** Deprecated** )
51
51
* ` --dev ` : Include development dependencies. (** Deprecated** )
52
52
* ` --extras (-E) ` : Extra sets of dependencies to include.
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ poetry export --only test,docs
67
67
68
68
* ` --format (-f) ` : The format to export to (default: ` requirements.txt ` ). Currently, only ` constraints.txt ` and ` requirements.txt ` are supported.
69
69
* ` --output (-o) ` : The name of the output file. If omitted, print to standard output.
70
- * ` --without ` : The dependency groups to ignore when exporting .
71
- * ` --with ` : The optional dependency groups to include when exporting .
72
- * ` --only ` : The only dependency groups to include when exporting.
73
- * ` -- default` : Only export the main dependencies. ( ** Deprecated ** )
70
+ * ` --with ` : The optional and non-optional dependency groups to include. By default, only the main dependencies are included .
71
+ * ` --only ` : The only dependency groups to include. It is possible to exclude the ` main ` group this way .
72
+ * {{< option name="without" deprecated=true >}}The dependency groups to ignore.{{< /option >}}
73
+ * {{< option name=" default" deprecated=true >}} Only export the main dependencies.{{< /option >}}
74
74
* {{< option name="dev" deprecated=true >}}Include development dependencies.{{< /option >}}
75
75
* ` --extras (-E) ` : Extra sets of dependencies to include.
76
76
* ` --all-extras ` : Include all sets of extra dependencies.
Original file line number Diff line number Diff line change @@ -41,8 +41,31 @@ class ExportCommand(GroupCommand):
41
41
None ,
42
42
"Include development dependencies. (<warning>Deprecated</warning>)" ,
43
43
),
44
- * GroupCommand ._group_dependency_options (),
45
44
option ("all-groups" , None , "Include all dependency groups" ),
45
+ option (
46
+ "with" ,
47
+ None ,
48
+ # note: unlike poetry install, the default excludes non-optional groups
49
+ "The optional and non-optional dependency groups to include."
50
+ " By default, only the main dependencies are included." ,
51
+ flag = False ,
52
+ multiple = True ,
53
+ ),
54
+ option (
55
+ "only" ,
56
+ None ,
57
+ "The only dependency groups to include." ,
58
+ flag = False ,
59
+ multiple = True ,
60
+ ),
61
+ option (
62
+ "without" ,
63
+ None ,
64
+ # deprecated: groups are always excluded by default
65
+ "The dependency groups to ignore. (<warning>Deprecated</warning>)" ,
66
+ flag = False ,
67
+ multiple = True ,
68
+ ),
46
69
option (
47
70
"extras" ,
48
71
"E" ,
You can’t perform that action at this time.
0 commit comments