Bug 797113

Summary: scl execution is inconvenient
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: scl-utilsAssignee: Jindrich Novy <jnovy>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jan.kratochvil, jhradile, jnovy, lzachar, pasteur, pknirsch, psplicha
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-06 20:02:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Proposed patch for the scl utility none

Description Jan Kratochvil 2012-02-24 10:22:47 UTC
Description of problem:
When I first faced 'scl' I did not know what to do with it.

Version-Release number of selected component (if applicable):
scl-utils-20120209-1.el5

How reproducible:
Always.

Steps to Reproduce:
1. scl --help
2. scl
3. man scl

Actual results:
Usage: scl <action> [<collection1>, <collection2> ...] <command>
If <command> is '-' then the command will be read from standard input.
Usage: scl <action> [<collection1>, <collection2> ...] <command>
If <command> is '-' then the command will be read from standard input.
No manual entry for scl

Expected results:
<action> can be for actually installed packages: enable
<collection> list from /etc/scl/prefixes/ is: devtoolset-1.0
And some real man page describing /etc/scl/prefixes/ etc.

Why is it a binary? Wouldn't a script be simple enough and readable by user?

Additional info:
Best there should be also: /etc/bash_completion.d/scl

Comment 4 Jaromir Hradilek 2012-09-05 16:48:01 UTC
Created attachment 610094 [details]
Proposed patch for the scl utility

Comment 5 Jan Kratochvil 2012-09-06 04:53:43 UTC
It looks better now, thanks. I would moreover suggest:

    -l, --list            list installed Software Collections or packages
                          that belong to them
->
    -l, --list               list installed Software Collections
    -l, --list <collection>  list packages belonging to <collection>

Comment 6 Jindrich Novy 2012-09-06 20:02:33 UTC
Ok, added a similar variant to upstream with separate helper function as proposed.