Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple module declaration causes unexpected behavior #5

Closed
kaz-utashiro opened this issue Jun 30, 2022 · 0 comments
Closed

Multiple module declaration causes unexpected behavior #5

kaz-utashiro opened this issue Jun 30, 2022 · 0 comments
Assignees
Labels

Comments

@kaz-utashiro
Copy link
Owner

This works fine.

$ jot 10 | optex -Mdebug column -Mxform --xform-encode ansi -x
optex: load /Users/utashiro/.optex.d/column.rc
@ARGV = -Mxform --xform-encode ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=$<shift> ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub App::optex::xform::encode=mode=ansi
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
@ARGV =  &set(PREFORK=&$<shift>) App::optex::xform::encode=mode=ansi -x
@ARGV =   -x
optex: exec column -x
1	2	3	4	5	6	7	8	9	10

But putting -Mutil::filter option to optex causes error:

$ jot 10 | optex -Mutil::filter -Mdebug column -Mxform --xform-encode ansi -x
optex: load /Users/utashiro/.optex.d/column.rc
@ARGV = -Mxform --xform-encode ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=$<shift> ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub App::optex::xform::encode=mode=ansi
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
optex: exec column --psub App::optex::xform::encode=mode=ansi -x
column: illegal option -- -
usage: column [-tx] [-c columns] [-s sep] [file ...]

Putting same module for subcommand does not effect:

$ jot 10 | optex -Mdebug column -Mutil::filter -Mxform --xform-encode ansi -x
optex: load /Users/utashiro/.optex.d/column.rc
@ARGV = -Mutil::filter -Mxform --xform-encode ansi -x
@ARGV = -Mxform --xform-encode ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=$<shift> ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub App::optex::xform::encode=mode=ansi
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
@ARGV =  -Mutil::filter --psub App::optex::xform::encode=mode=ansi -x
@ARGV = -Mutil::filter --psub
@ARGV =   --psub App::optex::xform::encode=mode=ansi -x
@ARGV =  &set(PREFORK=&$<shift>) App::optex::xform::encode=mode=ansi -x
@ARGV =   -x
optex: exec column -x
1	2	3	4	5	6	7	8	9	10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant